<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="util" uri="/WEB-INF/kdd-util.tld" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<sec:authorize access="isAuthenticated()">
    <ul class="nav nav-pills centeredsubnav">
        <sec:authorize access="hasRole('ROLE_ADMIN')">
            <li <c:if test="${util:isActiveMenu('admin/user', pageContext.request.requestURI)}">class="active"</c:if>><a href="<c:url value='/admin/user'/>"><spring:message code="msg.users" /></a></li>
            <li <c:if test="${util:isActiveMenu('admin/project', pageContext.request.requestURI)}">class="active"</c:if>><a href="<c:url value='/admin/project'/>"><spring:message code="msg.projects" /></a></li>
            <li <c:if test="${util:isActiveMenu('admin/subproject', pageContext.request.requestURI)}">class="active"</c:if>><a href="<c:url value='/admin/subproject'/>"><spring:message code="msg.subprojects" /></a></li>
            <li <c:if test="${util:isActiveMenu('admin/method', pageContext.request.requestURI)}">class="active"</c:if>><a href="<c:url value='/admin/method'/>"><spring:message code="msg.methods" /></a></li>
        </sec:authorize>
    </ul>
</sec:authorize>